package main

import "fmt"


func main() {

	size := 1
	for i := 10; i < 11; i++ {
		fmt.Println( size, " Hello World ", i)
		size++
	}

	// 计算体脂率
	// BMI = 体重kg / (身高m * 身高m)
	var weight float64 = 30
	fmt.Print("体重(kg):")
	fmt.Scanln(&weight)

	fmt.Print("身高(m):")
	var stature float64 = 1
	fmt.Scanln(&stature)
	var bmi = weight / (stature * stature)
	fmt.Println(weight, "kg ", stature, "m BMI:", bmi)

	var age int = 35
	var sex string
	var sexWeight int
	if sex == "男" {
		sexWeight = 1
	} else {
		sexWeight = 0
	}
	var fatRate float64 = (1.2 * bmi + 0.23*float64(age) - 5.4 - 10.8 * float64(sexWeight)) / 100
	fmt.Println("demo", fatRate)

	if age >= 18 && age <= 39 {
		if fatRate <= 0.1 {

		} else if fatRate > 0.1 && fatRate <= 0.16 {

		} else if fatRate > 0.16 && fatRate <= 0.21 {

		} else if fatRate > 0.21 && fatRate <= 0.26 {

		}
	}




}
